package cn.ante.ymcc.service;

import cn.ante.ymcc.domain.PayOrder;
import cn.ante.ymcc.dto.ApplyPayParamDto;
import cn.ante.ymcc.dto.Order2PayDto;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Nai
 * @since 2022-08-19
 */
public interface IPayOrderService extends IService<PayOrder> {

    /**
    * @Description: 消费消息时保存支付单
    * @Author: Nai
    * @Version: 1.0
    * @Date:  2022/8/20 22:34
    */
    void savePayOrder(Order2PayDto order2PayDto);

    PayOrder checkPayOrder(String orderNo);

    String apply(ApplyPayParamDto applyPayParamDto);

    void cancelPayOrderByPayTimeOut(String orderNo);
}
